home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / storage library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.6 KB  |  67 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        storage library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef storageLibraryIncludes
  13. #define storageLibraryIncludes
  14.  
  15.     #ifndef __TYPES__
  16. #include <Types.h>
  17. /*    #include <ConditionalMacros.h>                                */
  18. /*    #include <MixedMode.h>                                        */
  19. /*        #include <Traps.h>                                        */
  20.     #endif
  21.  
  22.     #ifndef graphicsStreamTypesIncludes
  23. #include "graphics stream types.h"
  24. /*    #include "font types.h"                                        */
  25. /*        #include "math types.h"                                    */
  26. /*    #include "graphics types.h"                                    */
  27.     #endif
  28.  
  29.      #ifdef __cplusplus
  30. extern "C" {
  31.     #endif
  32.  
  33. #if defined(powerc) || defined (__powerc)
  34. #pragma options align=mac68k
  35. #endif
  36. struct userSpool {
  37.     gxSpoolBlock                spool;
  38.     long                        reference;
  39.     long                        position;
  40.     long                        size;
  41.     void                        *data;
  42.     void                        *userField;
  43. };
  44. #if defined(powerc) || defined(__powerc)
  45. #pragma options align=reset
  46. #endif
  47.  
  48.     #ifndef __cplusplus
  49. typedef struct userSpool userSpool;
  50.  
  51.     #endif
  52.  
  53. extern Handle ShapeToHandle(gxShape source);
  54. extern gxShape HandleToShape(Handle target, long count, const gxViewPort portList[]);
  55. extern void ShapeToFRef(gxShape source, short fileRef);
  56. extern gxShape FRefToShape(short fileRef, long count, const gxViewPort portList[]);
  57. extern void ShapeToFile(gxShape source, Str255 fileName, short vRefNum, OSType creator, OSType fileType);
  58. extern gxShape FileToShape(Str255 fileName, short vRefNum, long count, const gxViewPort portList[]);
  59. extern Handle FontToHandle(gxFont fontID, long glyphBits[]);
  60. extern gxFont HandleToFont(Handle source);
  61.     #ifdef __cplusplus
  62. }
  63.     #endif
  64.  
  65. #endif
  66.  
  67.